<?php
class User_Model extends CI_Model{
	public function get($username){
		$username = $this->input->post('username');
		$user = $this->db
			->select('employee.id,user.username,user.password')
			->join('employee','employee.user_id = user.id','left')
			->where('username',$username)
			->get('user')
			->row();
		return($user);
	}

	public function set($username,$password){
		$data = array(
			'username'	=>	$this->input->post('username'),
			'password'	=>	$this->input->post('password'),
		);
		return($this->db->insert('user',$data));
	}

}